﻿@using Camalot.Common.Extensions;
@using Camalot.Common.Mvc.Extensions;
@using Madb.Site.Extensions;

@model Madb.Site.Models.Documentation.MethodModel

<div id="@Model.Id" data-xml-name="@Model.XmlName">
	<div class="page-header">
		<h4 class="zero">
			<i class="fa fa-gavel mrm"></i>
			<span class="method">
				<span class="method-returntype">@Html.DisplayFor(m => Model.ReturnType)</span>
				@if(Model.ExtensionOf != null) {<span class="method-extension">@Html.DisplayFor(m => Model.ExtensionOf)</span><text>.</text>}<!--
		 --><span class="method-name">@Model.Name</span>
				<span class="method-arguments"><!--
					-->@for(var x = 0; x < Model.Parameters.Count; ++x) {<!--
						-->var param = Model.Parameters[x];<!--
						-->@Html.DisplayFor(m => param)<!--
						-->if(x < Model.Parameters.Count - 1) {<!--
							--><span class="method-param-separator"></span> <!--
						-->}
					}
				</span>
			</span>
			<small class="mll text-muted pull-right">
				@Html.StaticIcon(Model.IsStatic)
				@Html.ExtensionIcon(Model.IsExtension)
				@Html.DirectLink(Model.Id)
			</small>
		</h4>
	</div>
	@if(Model.Documentation != null) {
		@Html.DisplayFor(x => Model.Documentation)
	}
</div>